<!DOCTYPE html> 
<html> 
<head> 
	<title>Connected</title>
</head>
	<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
	<script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>

<!-- dees is nog een statische link en moet veranderd worden naar de link die je terug krijgt van de json. -->
<body>
	<SCRIPT language="JavaScript">
	$.ajax( { 
			url: "/api/user",	//moet nog veranderd worden!!
			async: false,	// Now we wait till we get response.
			dataType:"json",
			success: function(data) {
				document.getElementById('user').innerHTML = ('Username = ' + data.username)
			}
	})
	</SCRIPT>
	<p id='user'>Waiting for responce</p>
	
	<A HREF="/_ah/login?continue=/connected.html">Login</A>

</body>
	
</html>